class Animal
{
    private:
      int m_nWeightBase;
    protected:
      int m_nAgeBase;
    public:
      Animal(int pweight, int page)
      {
          m_nWeightBase = pweight;
          m_nAgeBase = page;
      }
      void set_weight(int pweight)
      {
          m_nWeightBase = pweight;
      }
      int get_weight()
      {
          return m_nWeightBase;
      }
      void set_age(int page)
      {
          m_nAgeBase = page;
      }
};
class Cat : private Animal
{
    private:
     string m_strName;
    public:
     
      Cat(string pName): Animal(6,5)
      {
          m_strName = pName;
      }
      void set_print_age()
      {
         set_age(5);
         cout <<m_strName << ", age = " <<m_nAgeBase << endl; 
      }
      void set_print_weight()
      {
         cout <<m_strName << ", weight = " <<get_weight() << endl;
      }
      
};